From: Lars Ingebrigtsen Date: Sun, 22 Aug 2021 14:58:19 +0000 (+0200) Subject: Revert "Fix dired switch (that contain quotes and spaces) parsing" X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~18^2~1608 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=06c3a321e3cb7a7602fadf1817721a8f1b759604;p=emacs.git Revert "Fix dired switch (that contain quotes and spaces) parsing" This reverts commit 04f723dec944eaa7b5e99373840a8bf920ba5fdd. The dired switches are documented to not follow shell syntax, but instead uses a lisp-in-string-form kind of quoting. --- diff --git a/lisp/files.el b/lisp/files.el index ba362827ee7..e519a8ea8b6 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -7501,7 +7501,7 @@ normally equivalent short `-D' option is just passed on to (unless (equal switches "") ;; Split the switches at any spaces so we can ;; pass separate options as separate args. - (split-string-shell-command switches))) + (split-string-and-unquote switches))) ;; Avoid lossage if FILE starts with `-'. '("--") (list file))))))